package com.nuyoah.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 存储数学竞赛和学习相关的资讯资源
 * </p>
 *
 * @author xyx
 * @since 2024-06-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class NewsResource implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 资讯ID，自增长
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 资讯标题
     */
    private String title;

    /**
     *资讯详细内容
     */
    private String content;

    /**
     * 发布日期
     */
    private LocalDateTime publishDate;

    /**
     * 资讯类别：竞赛或学习材料
     */
    private String category;

    private String image;


}
